package com.supplychainapi.dao.prod;

import com.supplychainapi.model.Tbdepartment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface TbdepartmentMapper extends Mapper<Tbdepartment> {
    Integer nameIsExit(@Param("name") String name, @Param("shopGuid") String shopGuid);

    Integer selectQuotesById(@Param("fsDeptId") String fsDeptId,@Param("fsShopGUID")String fsShopGUID);

    String   getCode();

    List<Tbdepartment> search(@Param("fsShopGUID") String fsShopGUID, @Param("fsDepartmentName") String fsDepartmentName, @Param("fiStatus") Short fiStatus);
}